package com.usian.model.goods;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 商品表
 * </p>
 *
 * @author wyp
 * @since 2024-12-17
 */
@TableName("goods")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 商品id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 商品名称
     */
    private String name;

    /**
     * 商品描述
     */
    private String descc;

    /**
     * 商品图片
     */
    private String image;

    /**
     * 商品价值
     */
    private Double price;

    /**
     * 已兑换数量
     */
    private Integer nums;

    /**
     * 逻辑删除
     */
    private Integer isDelete;

    private Integer status;

    //积分
    private Integer score;

    //商品编号
    private String goodsId;

    private Integer tid;



    @TableField(exist = false)
    private String tname;
}
